<template>
  <view class="container">
    <web-view :src="videoUrl"></web-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      videoUrl: ''
    };
  },
  
  onLoad(options) {
    // 接收传递过来的 URL 参数
    if (options.url)
      this.videoUrl = decodeURIComponent(options.url);
      console.log(`Video URL: ${this.videoUrl}`);
    
}
}
</script>

<style>
.container {
  height: 100vh;
}
</style>